const { readFile } = require("fs/promises");
exports.readJson = async function(path) {
    const file = await readFile(path)
    const json = JSON.parse(file.toString('utf-8'))
    return json;
}

exports.diffObject = function(obj, goalObj) {
    for (let key in obj) {
        if (goalObj[key] !== obj[key]) {
            return false
        }
    }
    return true
}